﻿using UnityEngine;
using System.Collections;

public class Reverse : MonoBehaviour {

    Quaternion origion;
    // Use this for initialization
    void OnEnable()
    {
        origion = transform.parent.rotation;
    }

    // Update is called once per frame
    void Update()
    {
        transform.rotation = transform.parent.rotation * Quaternion.Inverse(transform.parent.rotation) * origion;//始终面朝相机
    }
}
